package net;

import java.io.IOException;
import java.net.UnknownHostException;

public class QQClient {
	public static void main(String[] args) throws UnknownHostException, IOException {
		QQ qq = new QQ("李四");
		qq.connect();
		
		new Thread(()->{
			try {
				qq.read();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}).start();
		
		new Thread(()->{
			try {
				qq.write();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}).start();
	}
}
